<?php
/**************************
@Author  : sulwan
@Content : 配置文件
**************************/
include_once(dirname(__file__).'/./function.php');
$configPath = dirname(__file__).'/../';
if( strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')	{
	define('__OS__',"WIN");
}
else{
	define('__OS__',"UNIX");
}
if ( __OS__=="WIN" ){
	$config = getCache($configPath,'config',1);
}else{
	$config = getCache($configPath,'linux',1);
}
// Cookie配置
$cookie_config = array(
	'cookie_pre'=>'haojishu_',
	'cookie_expire'=>360000,
	'cookie_path'=>'/',
	'cookie_domain'=>$config['domain'],
);
$urlCoure = 'http://www.edu24ol.com/interface/public/Lesson.asp';
$sid = '2712';
$key = 'pxton@13s01e28';
include_once(dirname(__file__).'/./tags_base.func.php');
include_once(dirname(__file__).'/./tags.func.php');
include_once(dirname(__file__).'/./tpl.php');
include_once(dirname(__file__).'/./json.php');
include_once(dirname(__file__).'/./string.php');
include_once(dirname(__file__).'/./xml.php');
include_once(dirname(__file__).'/./cache.php');
include_once(dirname(__file__).'/./gd.php');
include_once(dirname(__file__).'/./curl.php');
include_once(dirname(__file__).'/./Happy_db.php');
ini_set('session.save_handler', 'files');
mk_dir(DIR_ROOT.'/session');
session_save_path(DIR_ROOT.'/session');
session_start();
Session::Init();
$articleTypeConfig = array(
	'1' => '内置栏目',
	'2' => '连接',
);
?>